import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:freedom/page/mahjong/bloc/user_event.dart';
import 'package:freedom/page/mahjong/bloc/user_life_event.dart';
import 'package:freedom/page/mahjong/bloc/user_state.dart';

class TopUserBloc extends Bloc<UserEvent, UserState> {
  TopUserBloc() : super(UserState.empty()) {
    // 监听具体事件   返回新值
    //on<UpdateLife>((event, emit) => emit(state.copyWith(event.userState)));
    on<UpdateLife>((event, emit) => emit(state.copyWith(event.userState)));
  }
}
